import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqSGuildWarGuildScoreHelper } from "./SeqSGuildWarGuildScoreHelper";
import { SeqSGuildWarPlayerScoreHelper } from "./SeqSGuildWarPlayerScoreHelper";
type int = number;
//class SGuildWarScoreList
    
    export  class SGuildWarScoreList extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildWarScoreList();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            SeqSGuildWarGuildScoreHelper.write(arg1, this.guildScores);
            SeqSGuildWarPlayerScoreHelper.write(arg1, this.playerScores);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.guildScores = SeqSGuildWarGuildScoreHelper.read(arg1);
            this.playerScores = SeqSGuildWarPlayerScoreHelper.read(arg1);
            return;
        }

        public /* const */_type: int=153;

        public /* var */guildScores: Array<any>;

        public /* var */playerScores: Array<any>;

        public static /* var */_regist: SGuildWarScoreList;
    }

            SGuildWarScoreList._regist = new SGuildWarScoreList(true);
        